#pragma once

#include <iostream>
#include <vector>
#include <functional>

typedef void (*task)();

void task1()
{
    std::cout << "【下载】任务被执行" << std::endl;
}
void task2()
{
    std::cout << "【播放音乐】任务被执行" << std::endl;
}
void task3()
{
    std::cout << "【播放视频】任务被执行" << std::endl;
}
void task4()
{
    std::cout << "【编辑Word】任务被执行" << std::endl;
}

void InitTask(std::vector<task> *tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);
}